from collections import Counter
import json
with open("PARADE_test.txt", "r") as f:
    test_data = f.readlines()[1:]

# with open("PARADE_validation.txt", "r") as f:
#     val_data = f.readlines()[1:]

# with open("PARADE_test.txt", "r") as f:
#     test_data = f.readlines()[1:]

# datas = train_data + val_data + test_data 
# c = Counter()

# with open("entity.txt", "w") as fw:
#     for line in datas:
#         line = line.strip().split("\t")
#         entity = line[2]
#         c[entity] += 1
#     for k in c.keys():
#         fw.write(k + "\n")
# print(len(c))

# with open("entity_v3.txt","r") as f:
#     data = f.readlines()
    
#     entity = {}
#     for line in data:
#         line = line.strip().split("\t")
#         if len(line) !=2:
#             print(len)
#         entity[line[0].strip()] = line[1].strip()

# print(len(entity))

# all_data = []


# c = Counter()
# for line in test_data:
#     line = line.strip().split("\t")
#     s1 = line[3].strip().split()
#     s2 = line[4].strip().split()
#     for word in s1:
#         c[word] += 1
#     for word in s2:
#         c[word] += 1
# print(c)

n = 0
for line in test_data:
    line = line.strip().split("\t")
    label = line[1]
    if label == "0":
        n = n+1

print(n)